/*! 
 * WeX5 v3 (http://www.justep.com) 
 * Copyright 2015 Justep, Inc.
 * Licensed under Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) 
 */
define(function(require) {
	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");
	var BizDesignComp = require("$UI/system/components/designerCommon/comp/bizDesignComp");
	require('css!./css/wxapi').load();

	function create(comp, clz) {
		var $domNode = $(comp.domNode);
		comp.domNode.style.position = "absolute";
		if (!comp.domNode.style.top) {
			comp.domNode.style.top = "10px";
			comp.domNode.style.left = "10px";
		}
		$domNode.addClass(clz).html('');
	}
	var wxapiDesigner = BizDesignComp.extend({

		// 构造函数
		constructor : function(options) {
			this.callParent(options);
		},

		// 初始化
		init : function(value, bindingContext) {
			create(this, 'x-wxapi');
			this.callParent(value, bindingContext);

		}
	});

	var quickIdeEx = {
		"$UI/comp/wxapi/components/wxapi/wxapi" : {
			properties : [ 'xid'],
			displayName : function(config) {
				return "微信第三方";
			}
		}
	};

	return {
		'$UI/comp/wxapi/components/wxapi/wxapi' : wxapiDesigner,
		quickIdeEx : quickIdeEx
	};
});